package com.abysscore.yachtdesign;
import java.awt.Color;


public class TFreeEntity {
	protected boolean FBuild;                                                  // Flag to check if the entity has already been build
	private T3DCoordinate FMin,FMax;                                            // The min/max boundary coordinates of the entity after it has been build
	private byte FPenWidth;                                                     // Pen thickness to use when drawing
	private Color FColor;                                                   // Color when drawing
	private TPenStyle FPenstyle;                                                // Pen style for drawing the line
	private T3DCoordinate FGetMin()
	{
		return FMin;//                                        virtual;
	}
	private T3DCoordinate FGetMax()
	{
		return FMax;//                                        virtual;
	}
	private void FSetBuild(boolean Val)
	{
		FBuild = Val;//                                       virtual;
	}
 
	
	public TFreeEntity()
	{
		;//                                                     virtual;
	}
	public void Clear()
	{
		;//                                                      virtual;
	}
	//public destructor  Destroy;                                                    override;
	public void Extents(T3DCoordinate Min, T3DCoordinate Max)
	{
		FMin = Min;
		FMax = Max;
	}
	
	public void Draw(TFreeViewport Viewport)
	{
		;//                               virtual;
	}
	
	public void Rebuild()
	{
		;//                                                    virtual;
	}
	
	
	public boolean Build()
	{
		return FBuild;
	}
	public void Build(boolean val)
	{
		FSetBuild(val);
	}
	public Color Color()
	{
		return FColor;
	}
	public void Color(Color val)
	{
		FColor = val;
	}
	
	public T3DCoordinate Min()
	{
		return FGetMin();
	}
	public T3DCoordinate Max()
	{
		return FGetMax();
	}
	public TPenStyle PenStyle()
	{
		return FPenstyle;
	}
	public void PenStyle(TPenStyle val)
	{
		FPenstyle = val;        // Pen style
	}
	public byte PenWidth()
	{
		return FPenWidth;
	}
	public void PenWidth(byte val)
	{
		FPenWidth = val;             // Pen thickness when drawing on screen
	}
}
